package com.mz.mattress.api.annotation;

import org.springframework.web.bind.annotation.ValueConstants;

import java.lang.annotation.*;

/**
 * post请求时单个参数
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestSingleParam {

    /**
     * 变量名
     * @return
     */
    String value();

    boolean required() default true;

    String defaultValue() default ValueConstants.DEFAULT_NONE;
}

